<?php

namespace Core\Service\Authenticate;

use Model\User;

interface IdentityManagerInterface
{
    public function login($identity, $credential);
    public function logout();
    public function hasIdentity();

    /**
     * @param User $user
     * @return mixed
     */
    public function storeIdentity($user);

    /**
     * @return User
     */
    public function getIdentity();

}